package com.techstar.ats.status;

import java.util.Set;

public enum BasStatus implements StatusEnumerated {
	OPEN("风机", "开动", "关闭"),
	DIR("方向", "下行", "上行"),
	FAILURE("状态", "故障", "正常");

	private final String literal;
	private final String trueLiteral;
	private final String falseLiteral;

	BasStatus(String literal, String trueLiteral, String falseLiteral) {
		this.literal = literal;
		this.trueLiteral = trueLiteral;
		this.falseLiteral = falseLiteral;
	}

	@Override
	public String literal() {
		return this.literal;
	}

	@Override
	public String trueLiteral() {
		return this.trueLiteral;
	}

	@Override
	public String falseLiteral() {
		return this.falseLiteral;
	}

	public static Set<BasStatus> valueOf(int mask) {
		return StatusEnumerated.valueOf(BasStatus.class, mask);
	}
}
